package gob.osinerg.emergencia.tag;

import org.apache.commons.lang.StringUtils;

public class ControlTextAndNumber extends GenericControl{
	
	private String textValue;
	private String numberValue;
	private String textSize="50";
	private String numberSize="10";
	
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		TextFieldControl texto = new TextFieldControl();
		texto.setSize(getTextSize());
		texto.setName(getName());
		NumberFieldControl number = new NumberFieldControl();
		number.setSize(getNumberSize());
		number.setName(getName());
		//sb.append(getLabel()+" ");
		sb.append(texto.toString());
		sb.append(" ");
		sb.append(number.toString());
		sb.append(StringUtils.isEmpty(getRequired())?"":"(*)");
		return sb.toString();
	}



	public String getTextValue() {
		return textValue;
	}



	public void setTextValue(String textValue) {
		this.textValue = textValue;
	}



	public String getNumberValue() {
		return numberValue;
	}



	public void setNumberValue(String numberValue) {
		this.numberValue = numberValue;
	}



	public String getTextSize() {
		return textSize;
	}



	public void setTextSize(String textSize) {
		this.textSize = textSize;
	}



	public String getNumberSize() {
		return numberSize;
	}



	public void setNumberSize(String numberSize) {
		this.numberSize = numberSize;
	}
	
	
	
}
